package com.tomtop.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

import com.tomtop.core.datasource.config.DruidConfig;
public abstract class AbstractDataBaseConfig{

	static Logger log = LoggerFactory.getLogger(AbstractDataBaseConfig.class);

	@ConfigurationProperties(prefix="Spring.datasource") 
	@Bean DruidConfig druidConfig(){ 
		log.debug("开始注入db配置参数");
		return new DruidConfig(); 
	};
}
